//
// Created by Administrator on 2022/12/6.
//

#include <iostream>

using namespace std;

void swap(char &aa, char &bb)
{
    char t;
    t = aa;
    aa = bb;
    bb = t;
    printf("%c,%c\n", aa, bb);
}

int main()
{
    char a = 'a';
    char b = 'b';
    char &ra=a;
//    char t;
    printf("&a:%d\n", &a);
    printf("a: %c, b: %c\n", ra, b);
    swap(ra, b);
    printf("a: %c, b: %c", ra, b);
    return 0;
}